package com.li.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.omg.PortableInterceptor.INACTIVE;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_advertisement")
public class Advertisement {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标识
     */
    @TableField(value = "uuid")
    private String uuid;

    /**
     * 标识
     */
    @TableField(value = "file_name")
    private String fileName;

    /**
     * 访问路径
     */
    @TableField(value = "url")
    private String url;

    /**
     * 物理路径
     */
    @TableField(value = "filepath")
    private String filepath;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 状态
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    //批量删除用
    @TableField(exist = false)
    private Integer ids[];
}